<%@ Page Title="" Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="UpdateUser.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UpdateUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />
    <%--<style type="text/css">

    .style1
    {
        font-weight: bold;
    }
    .style3
    {
            text-align: left;
            width: 116px;
        }
        .style19
        {
            width: 160px;
        }
        </style>--%>
        <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>
    <style type="text/css">
        .style4
        {
            height: 16px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellpadding="0" __designer:mapid="154" class="detailstable">
        <tr __designer:mapid="157">
            <td align="left" colspan="2" __designer:mapid="158" class="ph5">
                <span   lang="en-us" __designer:mapid="15b">Details</span></td>
        </tr>
        <tr __designer:mapid="159">
            <td align="left" colspan="2" __designer:mapid="15a" class="pix8">
                </td>
        </tr>
        <tr __designer:mapid="15c">
            <td align="left"   __designer:mapid="15d" rowspan="1" class="style19" >
                                                Username*:
                                            </td>
            <td __designer:mapid="15e" rowspan="1">
                <asp:TextBox ID="txtUserName" runat="server" ReadOnly="True" Enabled="False" 
                    CssClass="txtbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                    ControlToValidate="txtUserName" ErrorMessage="Username is required." 
                                                    ToolTip="Username is required." 
                                    ValidationGroup="ctl00$ChangePassword1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        
                                      <tr>
                                        <td align="left" class="style9">
                                                <asp:Label ID="lblIntraUsername" runat="server" AssociatedControlID="IntranetUserName" 
                                                    CssClass="lbl1" 
                                                    ToolTip="Warning: Once you assign the Intranet Username you can't change it.">Intranet Username *:</asp:Label>
                                            </td>
                                            <td class="style9"  >
                                                <asp:TextBox ID="IntranetUserName" runat="server" CssClass="txtbox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                                    ControlToValidate="IntranetUserName" ErrorMessage="Intranet Username is required."
                                                    ToolTip="Intranet Username is required." ValidationGroup="ctl00$ChangePassword1"
                                                    >*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
        
        <tr __designer:mapid="161">
            <td   __designer:mapid="162" rowspan="1" class="style19">
                                                Name*:</td>
            <td __designer:mapid="163" rowspan="1">
                <asp:TextBox ID="txtName" runat="server" Rows="3" CssClass="txtbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="NameRequired" runat="server" 
                                                    ControlToValidate="txtName" ErrorMessage="Name is required." 
                                                    ToolTip="Name is required." 
                                    ValidationGroup="ctl00$ChangePassword1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="166">
            <td   __designer:mapid="167" rowspan="1" class="style19">
                                                ID Type*:</td>
            <td __designer:mapid="168"   rowspan="1">
                <asp:DropDownList ID="drpIdType" runat="server" CssClass="ddl">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="drpIdType" ErrorMessage="*" InitialValue="-1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="16a">
            <td   __designer:mapid="16b" rowspan="1" class="style19">
                                                ID No*:</td>
            <td __designer:mapid="16c"   rowspan="1">
                <asp:TextBox ID="txtIdNo" runat="server" CssClass="txtbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="UserNameRequired0" runat="server" 
                                                    ControlToValidate="txtIdNo" ErrorMessage="*" 
                                                    ToolTip="ID No is required." 
                                    ValidationGroup="ctl00$ChangePassword1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="16e">
            <td   __designer:mapid="16f" rowspan="1" class="style4">
                                                Address:</td>
            <td __designer:mapid="170" rowspan="1" class="style4">
                <asp:TextBox ID="txtAddress1" runat="server" CssClass="txtbox"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="172">
            <td align="left" __designer:mapid="173" rowspan="1" class="style19"  >
                                                &nbsp;</td>
            <td __designer:mapid="174" rowspan="1">
                <asp:TextBox ID="txtAddress2" runat="server" CssClass="txtbox"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="17a">
            <td align="left" __designer:mapid="17b" rowspan="1" class="style19"  >
                                                Country*:</td>
            <td __designer:mapid="17c" rowspan="1">
                <asp:DropDownList ID="drpCountry" runat="server" CssClass="ddl" 
                    onselectedindexchanged="drpCountry_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="drpCountry" ErrorMessage="*" InitialValue="-1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="180">
            <td align="left" __designer:mapid="181" rowspan="1"  >
                                                City:</td>
            <td __designer:mapid="182" rowspan="1">
                <asp:TextBox ID="txtCity" runat="server" CssClass="txtbox"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="184">
            <td align="left" __designer:mapid="185" rowspan="1"  >
                                                Gender*:</td>
            <td __designer:mapid="186" rowspan="1">
                <asp:DropDownList ID="drpGender" runat="server" CssClass="ddl">
                    <asp:ListItem Value="0">Male</asp:ListItem>
                    <asp:ListItem Value="1">Female</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="drpGender" ErrorMessage="*" InitialValue="Select"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="18c">
            <td align="left" __designer:mapid="18d" rowspan="1" class="style19"  >
                                                Contact No:</td>
            <td __designer:mapid="18e" rowspan="1">
                <asp:TextBox ID="txtContact" runat="server" CssClass="txtbox"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="190">
            <td align="left" __designer:mapid="191" rowspan="1" class="style19"  >
                                                Postel Code:</td>
            <td __designer:mapid="192" rowspan="1">
                <asp:TextBox ID="txtPostalCode" runat="server" CssClass="txtbox"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="194">
            <td align="left" __designer:mapid="195" rowspan="1"  >
                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" 
                    CssClass="lbl1">E-mail:</asp:Label>
            </td>
            <td __designer:mapid="197" rowspan="1">
                <asp:TextBox ID="Email" runat="server" CssClass="txtbox"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="199">
            <td align="left" __designer:mapid="19a" rowspan="1"   >
               </td>
            <td __designer:mapid="19b" rowspan="1">
                </td>
        </tr>
        
        <%--<tr __designer:mapid="199">
            <td align="left" __designer:mapid="19a" rowspan="1" class="style19"  >
                <b>Reset Password</b></td>
            <td __designer:mapid="19b" rowspan="1">
                &nbsp;</td>
        </tr>
        <tr __designer:mapid="199">
            <td align="left" __designer:mapid="19a" class="pix8"   >
                </td>
            <td __designer:mapid="19b">
                </td>
        </tr>
        <tr __designer:mapid="199">
            <td align="left" __designer:mapid="19a" rowspan="1" class="style19"  >
                                                <asp:Label ID="PasswordLabel" runat="server" 
                    AssociatedControlID="Password">Password*:</asp:Label>
                                            </td>
            <td __designer:mapid="19b" rowspan="1">
                                                <asp:TextBox ID="Password" runat="server" 
                    TextMode="Password" CssClass="txtbox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired0" runat="server" 
                                                    ControlToValidate="Password" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required.">*</asp:RequiredFieldValidator>
                                                </td>
        </tr>
        <tr __designer:mapid="199">
            <td align="left" __designer:mapid="19a" rowspan="1" class="style19"  >
                                                <asp:Label ID="ConfirmPasswordLabel" runat="server" CssClass="lbl1"
                                                    AssociatedControlID="ConfirmPassword">Confirm Password*:</asp:Label>
                                            </td>
            <td __designer:mapid="19b" rowspan="1"  >
                                                <asp:TextBox ID="ConfirmPassword" 
                    runat="server" TextMode="Password" CssClass="txtbox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired1" runat="server" 
                                                    ControlToValidate="ConfirmPassword" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required.">*</asp:RequiredFieldValidator>
                                                </td>
        </tr>--%>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" rowspan="1" class="pix12"  >
                               </td>
            <td __designer:mapid="1b7" rowspan="1">
                                </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="style19"  >
                                <b>Organization Nodes</b></td>
            <td __designer:mapid="1b7">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="pix8"  >
                             </td>
            <td __designer:mapid="1b7">
                                </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" valign="top"  >
                            User Type:</td>
            <td __designer:mapid="1b7" valign="top">
                            <asp:RadioButtonList runat="server" RepeatDirection="Horizontal" CssClass="rdbtn"
                                AutoPostBack="True" ID="rdoUserTypes" 
                                onselectedindexchanged="rdoUserTypes_SelectedIndexChanged">
                            </asp:RadioButtonList>
                        </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="style19"  >
                                &nbsp;</td>
            <td __designer:mapid="1b7">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="style19" valign="top"  >
                                Node Name:</td>
            <td __designer:mapid="1b7">
                            <table style="width: 47%;">
                                <tr>
                                    <td  >
                                        Group</td>
                                    <td  >
                                        <asp:DropDownList runat="server" AutoPostBack="True" ID="drpGroup" 
                                            onselectedindexchanged="drpGroup_SelectedIndexChanged" CssClass="ddl">
                                            <asp:ListItem Value="-1">Select...</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td  >
                                        Branch</td>
                                    <td>
                                        <asp:DropDownList runat="server" AutoPostBack="True" ID="drpBranch" 
                                            onselectedindexchanged="drpBranch_SelectedIndexChanged" CssClass="ddl">
                                            <asp:ListItem Value="-1">Select...</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td  >
                                        Unit</td>
                                    <td>
                                        <asp:DropDownList runat="server" ID="drpUnit" CssClass="ddl">
                                            <asp:ListItem Value="-1">Select...</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="right" __designer:mapid="1b6" class="pix12"   >
                                </td>
            <td __designer:mapid="1b7">
                           </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="style19"  >
                                <b>User Roles</b></td>
            <td __designer:mapid="1b7">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="pix8"  >
                                </td>
            <td __designer:mapid="1b7" class="pix8">
                                </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="style19"  >
                                User Type:</td>
            <td __designer:mapid="1b7">
                                            <asp:CheckBoxList runat="server" RepeatDirection="Horizontal" 
                                    RepeatLayout="Flow" AutoPostBack="True" ID="chkUserType" 
                                    OnSelectedIndexChanged="chkUserType_SelectedIndexChanged" CssClass="chbox"></asp:CheckBoxList>

                                        </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="style19"  >
                                &nbsp;</td>
            <td __designer:mapid="1b7">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="style19"  >
                                User Roles:</td>
            <td __designer:mapid="1b7">
                                            <asp:CheckBoxList runat="server" ID="chkRoles" CssClass=" chbox" Width="187px"></asp:CheckBoxList>

                                        </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="left" __designer:mapid="1b6" class="style19"  >
                                &nbsp;</td>
            <td __designer:mapid="1b7">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1b5">
            <td __designer:mapid="1b6" colspan="2"  >
                                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1b8">
            <td align="center" colspan="2" __designer:mapid="1b9">
                                                <%--<asp:CompareValidator ID="PasswordCompare" runat="server" 
                                                    ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                                    Display="Dynamic" 
                                                    ErrorMessage="The Password and Confirmation Password must match." 
                                                    ValidationGroup="wizCreateUser"></asp:CompareValidator>--%>
                                            </td>
        </tr>
        <tr __designer:mapid="1b8">
            <td align="center" colspan="2" __designer:mapid="1b9">
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                                    ControlToValidate="Email" Display="Dynamic" 
                ErrorMessage="Please enter a valid email." 
                
                                                    ValidationExpression="^([\w\d\-\.]+)@{1}(([\w\d\-]{1,67})|([\w\d\-]+\.[\w\d\-]{1,67}))\.(([a-zA-Z\d]{2,4})(\.[a-zA-Z\d]{2})?)$"></asp:RegularExpressionValidator>
                                            </td>
        </tr>
        <tr __designer:mapid="1bb">
            <td align="center" colspan="2" style="color:Red;" __designer:mapid="1bc">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                    ControlToValidate="txtPostalCode" Display="Dynamic" 
                                                    ErrorMessage="Postal code should be a number." 
                                                    ValidationExpression="^\d*$"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                    ControlToValidate="txtIdNo" Display="Dynamic" 
                                                    ErrorMessage="ID number length should not exceed 10." 
                                                    ValidationExpression="^[\w\s]{0,10}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr __designer:mapid="1bb">
            <td align="center" colspan="2" style="color:Red;" __designer:mapid="1bc">
                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
            </td>
        </tr>
        <tr __designer:mapid="1be">
            <td align="center" colspan="2" style="color:Red;" __designer:mapid="1bf">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1c0">
            <td  __designer:mapid="1c1"   colspan="2">
                <table cellpadding="0" cellspacing="0"  >
                    <tr>
                        <td width="81px">
                <asp:Button ID="ChangePasswordPushButton" runat="server" 
                                    CommandName="ChangePassword" Text="Update User" 
                                    ValidationGroup="ctl00$ChangePassword1" 
                                    onclick="ChangePasswordPushButton_Click" CssClass="btn" Width="76px" />
                        </td>
                        <td>
                <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" 
                                    CommandName="Cancel" Text="Cancel" 
                    onclick="CancelPushButton_Click" CssClass="btn" Width="76px" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
